# -*- coding:utf-8 *-*
from random import randint

#一个综合例子，用输入数据与随机数据做比较
chose = False

rand = randint(10,100)

while chose == False:
  answer = input()
  
  if answer < rand:
    print "你输入数据比随机数小"
  
  if answer > rand:
    print "你输入数据比随机数大"

  if answer == rand:
    print "你输入的数据终于与随机数据相等了"
    chose = True


